home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 04 Pathfinding and Movement / 05 Hancock / Goal_RideElevator.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-08-19  |  642 b   |  31 lines

  1.  
  2. #include "Goal.h"
  3.  
  4. class PathNode;
  5. class PathLink;
  6. class AI;
  7. class Elevator;
  8.  
  9. class Goal_RideElevator : public Goal, public GoalQueue
  10. {
  11. public:
  12.     enum Stage { CallingElevator = 0, EnteringElevator, RidingElevator };
  13.     Goal_RideElevator( AI* pAI, const PathLink *entryLink_, const PathNode *endNode);
  14.  
  15.     virtual ~Goal_RideElevator();
  16.  
  17.     // Update the goal
  18.     virtual void Update( float secs_elapsed );
  19.  
  20.     virtual bool ReplanSubgoals();
  21.  
  22. protected:
  23.     int stage;
  24.     const Elevator *elevator;
  25.  
  26.     const PathLink *entryLink;
  27.     const PathNode *end;
  28.     bool active; //has this goal been active?
  29. };
  30.  
  31. #endif // _TAIGoal_RideElevator_H_